<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>

<link href="css/apps/sparepart/input.css" type="text/css" rel="stylesheet" />
<script src="scripts/apps/app.js" type="text/javascript"></script>
<script src="scripts/apps/sparepart/input.js" type="text/javascript"></script>


<h3>添加备件</h3>
<form id="beanform">
<table class="table table-striped">
  
  <tbody>
  <tr>
    <td>名称</td>
    <td><input name="bean.name"  /></td>
  </tr>
  <tr>
    <td>型号</td>
    <td><input name="bean.typicalness"  /></td>
  </tr>
  <tr>
    <td>生产厂家</td>
    <td><input name="bean.manufacture"  /></td>
  </tr>
  <tr>
    <td>代理商</td>
    <td><input name="bean.agent"  /></td>
  </tr>
  
  <tr>
    <td>买入数量</td>
    <td><input name="bean.amount"  /></td>
  </tr>
  
  <tr>
    <td>单价</td>
    <td><input name="bean.price"  /></td>
  </tr>
  <tr>
    <td>使用单位</td>
    <td>
    <select name="bean.owner.id" id="beanownerid"  >
    </select>
    </td>
  </tr>
  <tr>
    <td>配套设备</td>
    <td>
      <input type="hidden" name="bean.host.id"  id="beanhostid" />
      <span class="label label-important" id="eqname">请选择设备</span>
      <button class="btn btn-warning" type="button" onclick="selectEqui('beanhostid','eqname');">选择设备</button>
    </td>
  </tr>
  
  </tbody>
  
  <tfoot>
    <tr>
      <td colspan="2">
        
<button type="button" class="btn btn-info" id="saveBtn">
  <i class="icon-ok icon-white"></i>
保存</button><button class="btn" type="reset">重置</button>
      </td>
    </tr>
  </tfoot>
</table>
</form>